package com.sansec.demo.interfaces.facade;

import com.sansec.demo.interfaces.dto.UserDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author lichangwei
 */

@Slf4j
@Controller
@RequestMapping(value = "/user")
public class FeignProduceController {

    @RequestMapping(value = "/get",method = RequestMethod.GET)
    @ResponseBody
    public UserDTO get(){
        UserDTO user=new UserDTO(1L,"111","111","");
        return user;

    }
}
